const { db } = require('../util/mysql')

// 通过用户名查询
exports.getUname = async (username) => {
    let data = await db('select * from user where uname = ?', [username])
    return data
}